import { ajax } from '../http.js';

const accountDetailsUrl = '/authc/user_assets/find_account_details_page'; // 账单明细
// 店铺流水统计
const findstoreDetailUrl = '/authc/store_statistics/find_page_store_detail'; // 查询直推店铺信息
const findStaticByDayUrl = '/authc/store_statistics/find_statistics_by_day'; // 统计店铺流水
// 月账单统计
const findMonthBillUrl = '/authc/user_assets/find_monthly_bills'; // 月度账单
const findRewardUrl = '/authc/user_assets/find_reward_category'; // 奖励分类下拉值
const findTeamContriUrl = '/authc/user_assets/find_team_contribution_page'; // 团队贡献列表


const accountDetails = (data, success, fail) => { // 账单明细
  ajax({
    url: accountDetailsUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const findstoreDetail = (data, success, fail) => { // 查询直推店铺信息
  ajax({
    url: findstoreDetailUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const findStaticByDay = (data, success, fail) => { // 计店铺流水
  ajax({
    url: findStaticByDayUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const findMonthBill = (data, success, fail) => { // 月度账单
  ajax({
    url: findMonthBillUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const findReward = (data, success, fail) => { // 奖励分类下拉值
  ajax({
    url: findRewardUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const findTeamContri = (data, success, fail) => { // 团队贡献列表
  ajax({
    url: findTeamContriUrl,
    data: data,
    success: success,
    fail: fail
  });
};
export {
  accountDetails, // 账单明细,
  findstoreDetail, // 查询直推店铺信息
  findStaticByDay, // 计店铺流水
  findMonthBill,  // 月度账单
  findReward,  // 奖励分类下拉值
  findTeamContri // 团队贡献列表
}